# -*- coding:utf-8 -*-
import json
from fastapi import APIRouter
from utils.response import success, fail

test_router = APIRouter()

dbOptions = {'host': '127.0.0.1', 'user': 'root', 'pwd': '123123', 'db': "fastframework", 'port': 3307}


def getClassName(name: str):
    return "".join(map(lambda x: x[0].upper() + x[1:].lower(), name.split("_")))


@test_router.get("/menu")
def get_menu():
    menu = json.load(open("E:/jx/pywebpg/backend/data/menu.json","r",encoding="utf8"))
    return success("ok", menu)

@test_router.get("/gen/code")
def get_gen_code():
    
    return success("OK")